package org.dolphin.base.bean;

import java.io.Serializable;
import org.springframework.util.ObjectUtils;

public class RegionVO implements Serializable {
  private static final long serialVersionUID = 898983461141718554L;
  private String id;
  private String name;

  @Override
  public boolean equals(Object obj) {
    if (obj == this) {
      return true;
    } else if (obj instanceof RegionVO) {
      RegionVO oth = (RegionVO) obj;
      return ObjectUtils.nullSafeEquals(getId(), oth.getId());
    }
    return false;
  }

  public String getId() {
    return id;
  }

  public String getName() {
    return name;
  }

  @Override
  public int hashCode() {
    return ObjectUtils.nullSafeHashCode(getId());
  }

  public void setId(String id) {
    this.id = id;
  }

  public void setName(String name) {
    this.name = name;
  }
}
